package models

type MembersModel struct {
	MemberId    int    `json:"member_id" gorm:"column:member_id;primary_key;auto_increment"`
	MemberName  string `json:"member_name" gorm:"column:member_name"`
	ProjectName string `json:"project_name" gorm:"column:project_name"`
	MemberRole  string `json:"member_role" gorm:"column:member_role"`
}

func NewMembersModel(member_name string, project_name string, member_role string) *MembersModel {
	return &MembersModel{MemberName: member_name, ProjectName: project_name, MemberRole: member_role}
}

func (m *MembersModel) TableName() string {
	return "members"
}
